<?php /*a:2:{s:64:"/www/wwwroot/delivery.1p23.com/app/admin/view/addons/create.html";i:1731041672;s:61:"/www/wwwroot/delivery.1p23.com/app/admin/view/layout/vue.html";i:1731041672;}*/ ?>
<!DOCTYPE html>
<html <?php if($config['elementUi']['dark']): ?>class="dark"<?php endif; ?>>
<head>
<meta charset="utf-8">
<title><?php echo site_config('basic.sitename'); ?></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<meta name="renderer" content="webkit">
<meta name="referrer" content="never">
<meta name="robots" content="noindex, nofollow">
<link rel="shortcut icon" href="<?php echo request()->domain(); ?>/favicon.ico" />
<link rel="stylesheet" href="<?php echo request()->domain(); ?>/assets/css/element-plus.css" />
<link rel="stylesheet" href="<?php echo request()->domain(); ?>/assets/css/theme/dark.css" />
<link rel="stylesheet" href="<?php echo request()->domain(); ?>/assets/libs/font-awesome/css/font-awesome.min.css" />
<link rel="stylesheet" href="<?php echo request()->domain(); ?>/assets/css/yunqi.css" />

</head>
<body>
    <div id="app">
        <el-container id="container" style="display: none;">
            <el-main style="padding: 0px;border-radius:4px;">
                <el-scrollbar id="mainScrollbar">
                    
    <el-card shadow="never" style="border: 0;">
        <yun-form
                :steps="['设置基础资料','设置扩展文件','添加菜单与数据']"
                @submit="onSubmit"
                :data="rows"
                :columns="columns">
            <template #default>
                <?php echo token_field(); ?>
            </template>
            <template #tables="{step,rows}">
                <el-form-item label="<?php echo __('选择表'); ?>:" v-if="step==2">
                    <el-select v-model="rows.tables" placeholder="请选择" multiple filterable style="width: 100%">
                        <?php foreach($table as $value): ?>
                        <el-option value="<?php echo htmlentities((string) $value); ?>"><?php echo htmlentities((string) $value); ?></el-option>
                        <?php endforeach; ?>
                    </el-select>
                </el-form-item>
            </template>
            <template #config="{step,rows}">
                <el-form-item label="<?php echo __('选择配置'); ?>:" v-if="step==2">
                    <el-select v-model="rows.config" placeholder="请选择" multiple filterable style="width: 100%">
                        <?php foreach($sonfig as $key=>$value): ?>
                        <el-option :value="<?php echo htmlentities((string) $key); ?>" label="<?php echo htmlentities((string) $value['name']); ?>-<?php echo htmlentities((string) $value['title']); ?>"></el-option>
                        <?php endforeach; ?>
                    </el-select>
                </el-form-item>
            </template>
            <template #menu="{step,rows}">
                <el-form-item label="<?php echo __('选择菜单'); ?>:" v-if="step==2">
                    <el-tree ref="tree" :props="{children:'childlist',label:'title'}" node-key="id" show-checkbox :default-checked-keys="checkedKey" :data="treedata" style="width: 100%;"></el-tree>
                </el-form-item>
            </template>
        </yun-form>
    </el-card>

                </el-scrollbar>
            </el-main>
        </el-container>
    </div>
</body>
<script type="text/javascript" src="<?php echo request()->domain(); ?>/assets/js/yunqi.js?v=<?php echo htmlentities((string) $config['version']); ?>"></script>
<script type="text/javascript">
    Yunqi.setConfig(<?php echo json_encode($config,JSON_UNESCAPED_UNICODE|JSON_UNESCAPED_SLASHES); ?>);
    Yunqi.setData(<?php echo build_var_json(get_defined_vars()); ?>);
</script>
<script type="module">
    import pageinfo from '<?php echo htmlentities((string) $config['baseUrl']); ?>ajax/js/b044da31e9be374874dc261d9ae1d397';
    import zhcn from '<?php echo request()->domain(); ?>/assets/js/zh-cn.js';
    try{
        Yunqi.setUp(pageinfo,zhcn);
    }catch (e){
        console.error(e);
    }
</script>
</html>
